<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<f:view xmlns="http://www.w3.org/1999/xhtml"
   xmlns:ui="http://java.sun.com/jsf/facelets"
   xmlns:f="http://java.sun.com/jsf/core"
   xmlns:h="http://java.sun.com/jsf/html"
   xmlns:s="http://jboss.com/products/seam/taglib"
   xmlns:pr="http://primefaces.prime.com.tr/ui"
   contentType="text/html">
<html>
   <head>
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
      <title>ExpenseManager</title>
      <pr:resources exclude="skin.css"/>
      <link rel="stylesheet" type="text/css" href="/ExpenseManager/primefaces_resource/1.1/primefaces-afternoon/theme.css" />
   </head>
   <body>

	<h3>Greetings</h3>

	<h:form id="ListOfUsersForm">
		<pr:dataTable id="ListOfUsersTable" value="#{listUsersBean.abusers}" var="busr"
			paginator="true" rows="10" 
			paginatorPosition="bottom">
		
			<pr:column sortBy="#{busr.username}">
				<f:facet name="header">
					<h:outputText value="User Name" />
				</f:facet>
				<h:outputText value="#{busr.username}" />
			</pr:column>
		
			<pr:column sortBy="#{busr.firstname}">
				<f:facet name="header">
					<h:outputText value="First Name" />
				</f:facet>
				<h:outputText value="#{busr.firstname}" />
			</pr:column>
			
			<pr:column sortBy="#{busr.lastname}">
				<f:facet name="header">
					<h:outputText value="Last Name" />
				</f:facet>
				<h:outputText value="#{busr.lastname}" />
			</pr:column>
			
		</pr:dataTable>	
	
	</h:form>
	
</body>

</html>
</f:view>